package com.ruoyi.information.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资讯对象 information
 * 
 * @author ruoyi
 * @date 2025-05-25
 */
public class Information extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long tsanCount;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 资讯标题 */
    @Excel(name = "资讯标题")
    private String title;

    /** 资讯图片地址 */
    @Excel(name = "资讯图片地址")
    private String photo;

    /** 管理员 id */
    @Excel(name = "管理员 id")
    private Long adminId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTsanCount(Long tsanCount) 
    {
        this.tsanCount = tsanCount;
    }

    public Long getTsanCount() 
    {
        return tsanCount;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }

    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tsanCount", getTsanCount())
            .append("startTime", getStartTime())
            .append("title", getTitle())
            .append("photo", getPhoto())
            .append("adminId", getAdminId())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
